﻿using System;
using System.Collections.Generic;

using System.Text;

namespace Flame
{
    public static class Debug
    {
        static Dictionary<string, object> _map = new Dictionary<string, object>();
        [System.Diagnostics.Conditional("FLAME")]
        public static void Add(string name, object value)
        {
            if (!_map.ContainsKey(name))
                _map.Add(name, value);
        }

        public static object Get(string name)
        {
            if (!_map.ContainsKey(name)) return null;
            return _map[name];
        }


        [System.Diagnostics.Conditional("FLAME")]
        public static void StartDebugger()
        {
            System.Diagnostics.Debugger.Launch();
        }
    }
}
